package top.kaoshanji.p1ch02b;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 代码清单-p1ch02b-37页a：绑定mysql-config.properties配置文件的值
 * @author kaoshanji
 * ^_^
 * create time 2025/5/19 15:03
 */
@Data
@Component
@PropertySource(value = {"config/mysql-config.properties"})
public class MySqlProperties {

    @Value("${mysql.username}")
    private String userName;

    @Value("${mysql.password}")
    private String passWord;


}
